﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ajayumi.Platform
{
    public class PersonCollection : List<PersonInfo>
    {
        public PersonCollection()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }

        public PersonCollection GetList(int index, int size)
        {
            PersonCollection lst = new PersonCollection();
            for (int i = 1; i <= size; i++)
            {
                int id = i + (index - 1) * size;
                lst.Add(new PersonInfo()
                {
                    Id = id,
                    Code = (10000 + id).ToString(),
                    Name = string.Concat("Test", id),
                    Birthday=DateTime.Now,
                    CreationDate = DateTime.Now,
                    Address=new Random(1000).Next().ToString()
                });

            }

            return lst;
        }
    }
}